<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业1</title>
</head>
<body>
<pre>
      str = input("请输入:\n")
    print('%d个字母,%d个数字'%(sum([1 for i in range(len(str)) if str[i].isdigit()]),sum([1 for i in range(len(str)) if str[i].isalpha()])))
</pre>
</body>
</html>